/**
 *@auther: tang
 *@Date: 2021-02-23
 *Project: p2pPlatformSys
 *Lang: TypeScript
 */
/* indent size: 2 */

module.exports = app => {
  const DataTypes = app.Sequelize;

  const Model = app.model.define('fnlogs', {
    id: {
      type: DataTypes.INTEGER(20),
      allowNull: false,
      primaryKey: true,
    },
    date: {
      type: DataTypes.STRING(40),
      allowNull: true,
    },
    content: {
      type: DataTypes.STRING(255),
      allowNull: true,
    },
    type: {
      type: DataTypes.INTEGER(1),
      allowNull: false,
    },
    bsType: {
      type: DataTypes.INTEGER(2),
      allowNull: false,
    },
  });

  Model.associate = function() {
  };

  return Model;
};
